package com.gdms.dao;

import java.util.List;

import com.gdms.entity.TeacherReport;

/**
 * 根据 subjectId 查询所有信息
 * 添加任务书信息
 * 添加开题报告信息
 * 根据 subjectId 更新opening的信息
 * 根据 subjectId 更新taskBook的信息
 * 根据 教师id 获得所有信息
 * 重置 taskBook
 * 重置 opening
 * 根据 subjectId 查询所有信息
 * 根据 subjectId 删除所有信息
 * 根据 taskBook 查询信息
 * 根据 openingReport 查询信息
 */

public interface ITeacherReportDao {
	TeacherReport showInfo(int subjectId);
	int addOpeningReport(TeacherReport teacherReport);
	int addTaskBook(TeacherReport teacherReport);
	int addFeasibilityAnalysisReport(TeacherReport teacherReport);
	int addDemandAnalysisReport(TeacherReport teacherReport);
	int addSummaryDesignReport(TeacherReport teacherReport);
	int addDatabaseFile(TeacherReport teacherReport);
	
	int uploadOpeningReport(TeacherReport teacherReport);
	int uploadTaskBook(TeacherReport teacherReport);
	int uploadFeasibilityAnalysisReport(TeacherReport teacherReport);
	int uploadDemandAnalysisReport(TeacherReport teacherReport);
	int uploadSummaryDesignReport(TeacherReport teacherReport);
	int uploadDatabaseFile(TeacherReport teacherReport);
	
	List<TeacherReport> showTeacherReportById(int teacherId);

	int resetOpeningReport(int subjectId);
	int resetTaskBook(int subjectId);
	int resetFeasibilityAnalysisReport(int subjectId);
	int resetDemandAnalysisReport(int subjectId);
	int resetSummaryDesignReport(int subjectId);
	int resetDatabaseFile(int subjectId);

	TeacherReport showInfoBySubjectId(int subjectId);
	
	int deleteInfo(int subjectId);

	TeacherReport getInfoByOpeningReport(String openingReport);
	TeacherReport getInfoByTaskBook(String taskBook);
	TeacherReport getInfoByFeasibilityAnalysisReport(String feasibilityAnalysisReport);
	TeacherReport getInfoByDemandAnalysisReport(String demandAnalysisReport);
	TeacherReport getInfoBySummaryDesignReport(String summaryDesignReport);
	TeacherReport getInfoByDatabaseFile(String databaseFile);
}
